// 使用Vue.use进行全局组件注册
export default function(Vue, options) {
  //   install(Vue, options) {
  //     console.log(Vue, options)
  //     Vue.component(Hmupload.name, Hmupload)
  //   }
  const req = require.context('./', true, /\.vue$/)
  //   console.log(req)
  const keys = req.keys()
  //   console.log(keys)
  keys.forEach((item) => {
    const defaultCom = req(item).default
    console.log(defaultCom)
    Vue.component(defaultCom.name, defaultCom)
  })
}
